char * defangIPaddr(char * address){
char* arr=(char*)calloc(strlen(address)+7,1);
int j=0;
for(int i=0;i<strlen(address);i++)
{
    if(address[i]=='.')
    {
        arr[j++]='[';
        arr[j++]='.';
        arr[j++]=']';
    }
    else
    arr[j++]=address[i];
}
return arr;
}